program sortirovka;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
n, i, j, t: integer;
fin, fout: textFile;
mass: array of integer;

begin
  assignFile(fin, 'input.txt');
  reset(fin);
  readln(fin, n);
  setLength(mass, n+1);
  for i:= 0 to n-1 do
    begin
      read(fin, mass[i]);
    end;
  for i := 1 to n-1 do
    for j := 0 to n-i-1 do
      if (mass[j] > mass[j+1]) then
        begin
          t := mass[j];
          mass[j] := mass[j+1];
          mass[j+1] := t;
        end;
  assignFile(fout, 'output.txt');
  rewrite(fout);
  for i:= 0 to n-1 do
    begin
      write(fout, mass[i], ' ');
    end;
  closeFile(fin);
  closeFile(fout);
end.
